home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Extension Shell ƒ / Extension.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  1.9 KB  |  69 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: Extension.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.     12/01/92 - dmh - Created.
  11.      4/26/93 - dmh - Updated to use recommended approach
  12.                       to global data initialization.
  13.      9/05/93 - dmh - Updated for b2.
  14.                     - Fixed minor problem with highlighting
  15.                      of editText panel items.
  16.                    - Switched to Exception.h assertion stuff
  17.                      for error checking.
  18.     12/18/93 - dmh - Updated for b3.
  19.      3/22/94 - dmh - Updated for b4.
  20.  
  21.     (Note: labels are in the Mark menu.)
  22.     
  23. __________________________________________________________*/
  24.  
  25. #include <Types.h>
  26. #include <Errors.h>
  27. #include <Resources.h>
  28. #include <ToolUtils.h>
  29. #include <GXExceptions.h>
  30. #include <Collections.h>
  31. #include <Messages.h>
  32. #include <PrintingManager.h>
  33. #include <PrintingMessages.h>
  34.  
  35.  
  36. #define kCreator                    'GExt'            /* Our creator type.            */
  37. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  38.  
  39. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  40. #define kExtensionTurnedOff            0                /* We're turned on.                */
  41. #define kExtensionTurnedOn            1                /* We're turned off.            */
  42.  
  43. #define kDefaultSetting            kExtensionTurnedOn    /* We're on by default.            */
  44.  
  45.  
  46. typedef struct ExtensionCollection                    /* This is our collection type.    */
  47. {
  48.     char    extTurnedOn;                            /* On/off panel item value.        */
  49.     char    fillByte;
  50. } ExtensionCollection;
  51.  
  52.  
  53. // Prototypes:
  54.  
  55. extern    long A5Size (void);                            /* We need these to set up        */
  56. extern    void A5Init (void *);                        /* our A5 world.                */
  57.  
  58. OSErr    InitGlobalData(void);
  59. OSErr    NewInitialize(void);
  60. OSErr    NewShutDown(void);
  61. OSErr    NewSpoolPage(gxSpoolFile spFile, gxFormat aFormat, gxShape pgShape);
  62. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  63. OSErr    NewHandlePanelEvent(gxPanelInfoRecord *panelInfo);
  64. OSErr    SetUpPrintPanel(void);
  65. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  66.                              OSType collectType, short collectID);
  67.  
  68.  
  69.